@extends('back.index')

@section('title','新增角色-后台管理系统')

@section('mian')
    <div style="font-size:14px;padding:20px;" class="modal-content">
        <h2 class="sub-header power_mian">新增管理员</h2>
            <div class="container ">
            <div class="row">
                <div class="col-md-8">
            <form class="form-horizontal" action="" method="post">
                <div class="form-group">
                    <label for="inputPassword3" class="col-sm-2 control-label">管理员名称</label>
                    <div class="col-sm-10">
                        <input type="text" name="name" class="form-control" id="inputPassword3" placeholder="管理员名称">
                        @if(count($errors))
                            {{$errors->first('name')}}
                            @endif
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputPassword3" class="col-sm-2 control-label">管理员邮箱</label>
                    <div class="col-sm-10">
                        <input type="email" name="email" class="form-control" id="inputPassword3" placeholder="管理员邮箱">
                        @if(count($errors))
                            {{$errors->first('email')}}
                        @endif
                    </div>
                    {{csrf_field()}}
                </div>
                <div class="form-group">
                    <label for="inputPassword3" class="col-sm-2 control-label">管理员密码</label>
                    <div class="col-sm-10">
                        <input type="password" name="password" class="form-control" placeholder="管理员密码">
                        @if(count($errors))
                            {{$errors->first('password')}}
                        @endif
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputPassword3" class="col-sm-2 control-label">确认密码</label>
                    <div class="col-sm-10">
                        <input type="password" name="password_confirmation" class="form-control" placeholder="确认管理员密码">
                    </div>
                </div>
                @if(!empty(session('addstrator')))
                    {{session('addstrator')}}
                    @endif
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <input type="submit" class="btn btn-default" value="上传">
                    </div>
                </div>
            </form>
           </div>
            </div>
            </div>
    </div>
@endsection